<script lang="ts" setup>
import { onMounted, ref } from 'vue';
import Time from './Time/index.vue';

const route = ref('')
const enterAction = ref({})

onMounted(() => {
  window.utools.onPluginEnter((action) => {
    route.value = action.code
    enterAction.value = action
  })
  window.utools.onPluginOut((isKill) => {
    route.value = ''
  })
})
</script>

<template> 
    <Time :enterAction="enterAction"></Time>
</template>
